package com.luoye.lj.platform.dao.mapper;


import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.RUnitInfo;
import com.luoye.lj.platform.model.domain.RoleInfo;
import com.luoye.lj.platform.model.domain.manage.ManageLog;
import com.luoye.lj.platform.model.domain.manage.ManageLogSearchCondition;
import com.luoye.lj.platform.model.domain.muser.MUserDetailSearchCondition;
import com.luoye.lj.platform.model.domain.muser.MUserInfo;
import com.luoye.lj.platform.model.domain.muser.MUserSaveInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-9-28
 * Time: 下午6:06
 * To change this template use File | Settings | File Templates.
 */
public interface IMuserserviceMapper {
   MUserInfo getUserByName(@Param("username") String username);
   RoleInfo getRoleById(@Param("id") long id);
   List<AuthInfo> getAuthsByRid(@Param("rid") long rid);
   int insertUser(MUserInfo mUserInfo);
    List<RoleInfo> getAllRole();
    MUserInfo getUserById(@Param("id") long id);
    int updateUser(MUserInfo mUserInfo);
    int insertLog(ManageLog manageLog);
    List<MUserInfo> searchUserInfoByCondition(MUserDetailSearchCondition muserDetailSearchCondition);
    int getUserInfoCountByCondition(MUserDetailSearchCondition muserDetailSearchCondition);
    List<ManageLog> searchManageLogByCondition(ManageLogSearchCondition manageLogSearchCondition);
    int getManageLogCountByCondition(ManageLogSearchCondition manageLogSearchCondition);
    List<RoleInfo> getRolesByUid(@Param("uid") long uid);
    int addUrr(MUserSaveInfo mUserSaveInfo);
    int delUrr(long uid);
}
